-- GENERATED SPELL FOR [Felhound Manastalker] --


function spell0_17401(pUnit, Event) --@Mana Burn,n/a--
pUnit:FullCastSpellOnTarget(13321,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17401', 3000, 1)
end

function spell1_17401(pUnit, Event) --@Spell Lock,n/a--
pUnit:FullCastSpellOnTarget(30849,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17401', 4326, 1)
end

function Sorts_17401(pUnit, Event)
local choix_sorts_17401 = math.random(0, 1)
if choix_sorts_17401 == 0 then
pUnit:RegisterEvent('spell0_17401', 1, 1)
end
if choix_sorts_17401 == 1 then
pUnit:RegisterEvent('spell1_17401', 1, 1)
end
end

function mob17401_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17401', math.random(1500, 3000), 1)
end

function mob17401_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17401_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17401_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17401, 1, 'mob17401_Action')
RegisterUnitEvent(17401, 2, 'mob17401_Leave')
RegisterUnitEvent(17401, 3, 'mob17401_Kill')
RegisterUnitEvent(17401, 4, 'mob17401_Die')
